﻿using System.Drawing;

namespace KMSimulator.Model
{
    public class MouseDoubleClickAction : KMActionBase
    {
        /// <summary>
        /// 鼠标按键
        /// </summary>
        public MouseButton Button { get; set; } = MouseButton.LeftButton;

        /// <summary>
        /// 坐标位置
        /// </summary>
        public Point Location { get; set; }

        public override KMActionType ActionType => KMActionType.MouseDoubleClick;

        public override string GetActionType()
        {
            return "鼠标双击";
        }

        public override string ToString()
        {
            return $"双击按键: {Button}, X: {Location.X}, Y: {Location.Y} 释放时间: {ReleaseTime} 执行后延时: {Delay}";
        }
    }
}
